package com.tencent.wxcloudrun.service;

import com.tencent.wxcloudrun.dao.AuthMapper;
import com.tencent.wxcloudrun.model.Auth;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * ClassName: AuthService
 * Package: com.tencent.wxcloudrun.service
 * Description:
 *
 * @Date: 2023/1/23 2:04 PM
 * @Author: wht
 */
@Slf4j
@Service
public class AuthService {
    @Autowired
    AuthMapper authMapper;

    public void addOneAuth(Auth auth) {
        authMapper.addOneAuth(auth);
    }

    public void updateOneAuthById(Auth auth) {
        authMapper.updateOneAuthById(auth);
    }


    public List<Auth> getAuthListAll() {
        List<Auth> authList = authMapper.getAuthListAll();
        return authList;
    }
}
